<?php
	echo "<br/><i><u><p style='color:black; font-weight:bold'>Enter your bank details</p></i></u></br>";
	echo "<br/><b><span style='font-size:12px;color:'>Outside UK:</span></b><br/>";
	//--------------------------------------------------
	// Outside UK
	echo '<form action = "/clients/withdraw/id=formOutsideUK" method = "POST" id="formOutsideUK">';
	
	echo "<table cellspacing='0' cellpadding='0' border='0' style = 'margin-top: 15px; id='tablePrAccount'>"
	."<tr height='40px'>"
	."<td width = 200px nowrap='nowrap'>".Language::Get('Name on card').":</td>"
	."<td class='inputType-1-left'></td>"
	."<td class='inputType-1-center'>";
	echo  XHTML::InputText('Name_on_card', '', array('style' => 'width: 100%', 'id' => 'ID_Name_on_card', 'placeholder' => 'Enter value here'))
	."</td>"
	."<td class='inputType-1-right'/>"
	."</tr>";
	echo  "<tr height='40px'>"
	."<td width = 200px nowrap='nowrap'>".Language::Get('swift number').":</td>"
	."<td class='inputType-1-left'></td>"
	."<td class='inputType-1-center'>";
	echo  XHTML::InputText('swift_number', '', array('style' => 'width: 100%', 'id' => 'ID_swift_number', 'placeholder' => 'Enter value here'))
	."</td>"
	."<td class='inputType-1-right'/>"
	."</tr>";
	echo  "<tr height='40px'>"
	."<td width = 200px nowrap='nowrap'>".Language::Get('IBAN').":</td>"
	."<td class='inputType-1-left'></td>"
	."<td class='inputType-1-center'>";
	echo		XHTML::InputText('iban', '', array('style' => 'width: 100%', 'id' => 'ID_iban', 'placeholder' => 'Enter value here'))
	."</td>"
	."<td class='inputType-1-right'/>"
	."</tr>";
	echo  "<tr height='40px'>"
	."<td width = 200px nowrap='nowrap'>".Language::Get('Amount withdraw')."&nbsp;(<span style = 'color: green; '>$</span>):</td>"
	."<td class='inputType-1-left'></td>"
	."<td class='inputType-1-center'>";
	echo		XHTML::InputText('amount_withdraw', '', array('style' => 'width: 100%', 'id' => 'ID_amount_withdraw', 'placeholder' => 'Enter value here'))
	."</td>"
	."<td class='inputType-1-right'/>"
	."</tr>";
	//button 
	echo " 
	</table>
	
	<table cellspacing='0' cellpadding='0' border='0' style = 'margin-top: 15px;'>
	<tr>
	<td class='btnType-5-left btnType-5-left-select'></td>
	<td class='btnType-5-center btnType-5-center-select' align='center' width=150px>
	<span id='btnCalc' class='btnType-5-txt cpointer' onclick='formSubmit(\"formOutsideUK\")'>".Language::Get('Click to withdaw')."</span>
	</td>
	<td>
	</td>
	<td class='btnType-5-right btnType-5-right-select'></td>
	</tr>
	</table>
	</form>";
	//--------------------------------------------------------
	// show error message
	if ($this->data['message_withdraw'])
	{
		//message
		HtmlsHelper::Message(array("text" => "You withdrawal request was sent!"));
		unset($_SESSION['WithdrawSuccess']);
	}
	else if ( $this->data['message_withdraw'] === Language::Get('Withdraw money request submitted'))
	{
		//message
		HtmlsHelper::Message(array("text" => "Deposit was not withdrawed!"));
		unset($_SESSION['WithdrawSuccess']);
	}	
	echo "<br/><br/>";
	echo "<br/><b><span style='font-size:12px'>UK:</span></b><br/>";
	//--------------------------------------------------
	// UK
	echo '<form action = "clients/withdraw" method = "POST" id="formUK">';
	
	echo "<table cellspacing='0' cellpadding='0' border='0' style = 'margin-top: 15px; id='tablePrAccount'>"
	."<tr height='40px'>"
	."<td width = 200px nowrap='nowrap'>".Language::Get('Name on card').":</td>"
	."<td class='inputType-1-left'></td>"
	."<td class='inputType-1-center'>";
	echo  XHTML::InputText('Name_on_card_uk', '', array('style' => 'width: 100%', 'id' => 'ID_Name_on_card', 'placeholder' => 'Enter value here'))
	."</td>"
	."<td class='inputType-1-right'/>"
	."</tr>";
	echo  "<tr height='40px'>"
	."<td width = 200px nowrap='nowrap'>".Language::Get('Sort code').":</td>"
	."<td class='inputType-1-left'></td>"
	."<td class='inputType-1-center'>";
	echo  XHTML::InputText('Sort_code', '', array('style' => 'width: 100%', 'id' => 'ID_sort_code', 'placeholder' => 'Enter value here'))
	."</td>"
	."<td class='inputType-1-right'/>"
	."</tr>";
	echo  "<tr height='40px'>"
	."<td width = 200px nowrap='nowrap'>".Language::Get('bank account').":</td>"
	."<td class='inputType-1-left'></td>"
	."<td class='inputType-1-center'>";
	echo		XHTML::InputText('bank_account', '', array('style' => 'width: 100%', 'id' => 'ID_bank_account', 'placeholder' => 'Enter value here'))
	."</td>"
	."<td class='inputType-1-right'/>"
	."</tr>";
	echo  "<tr height='40px'>"
	."<td width = 200px nowrap='nowrap'>".Language::Get('Amount withdraw')."&nbsp;(<span style = 'color: green; '>$</span>):</td>"
	."<td class='inputType-1-left'></td>"
	."<td class='inputType-1-center'>";
	echo		XHTML::InputText('amount_withdraw', '', array('style' => 'width: 100%', 'id' => 'ID_amount_withdraw', 'placeholder' => 'Enter value here'))
	."</td>"
	."<td class='inputType-1-right'/>"
	."</tr>";
	//button
	echo "
	</table>
	
	<table cellspacing='0' cellpadding='0' border='0' style = 'margin-top: 15px;'>
	<tr>
	<td class='btnType-5-left btnType-5-left-select'></td>
	<td class='btnType-5-center btnType-5-center-select' align='center' width=150px>
	<span id='btnCalc' class='btnType-5-txt cpointer' onclick='formSubmit(\"formUK\")'>".Language::Get('Click to withdaw')."</span>
	</td>
	<td>
	</td>
	<td class='btnType-5-right btnType-5-right-select'></td>
	</tr>
	</table>
	</form>";
	echo "<br/><div style='padding: 1%;font-size:12px;color:red'>"
			."<b>NOTE:</b>&nbsp;"
			."<span>After receiving the form, it will be checked. The money will be sent directly to your bank account. It  will take up to 7 days to complete the process.</span>"
			."</div>";
?>
<script type="text/javascript">
	function formSubmit( id )
	{
		$('#'+id).submit();
		
	}
</script>